package kr.hyunist.androidcomplete01saeildamil.ch12;

import kr.hyunist.androidcomplete01saeildamil.*;
import kr.hyunist.androidcomplete01saeildamil.ch09.*;
import android.app.*;
import android.content.*;
import android.os.*;
import android.view.*;

public class Ch12Activity extends Activity {
	Intent intent = null;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch12activity);
	}

	public void mOnClick(View v) {
		switch (v.getId()) {
		case R.id.ch12subtitle1:
			intent = new Intent(this, ListViewEx.class);
			break;
			
		case R.id.ch12subtitle2:
			intent = new Intent(this, ListFromArrayEx.class);
			break;
			
		case R.id.ch12subtitle3:
			intent = new Intent(this, ListAddDelEx.class);
			break;
			
		case R.id.ch12subtitle4:
			intent = new Intent(this, ListAddDelMultiEx.class);
			break;
			
		case R.id.ch12subtitle5:
			intent = new Intent(this, ListIconTextEx.class);
			break;
			
		case R.id.ch12subtitle6:
			intent = new Intent(this, ListMultiDelEx.class);
			break;	
			
		case R.id.ch12subtitle7:
			intent = new Intent(this, ListOfViewEx.class);
			break;
			
		case R.id.ch12subtitle8:
			intent = new Intent(this, MentalTestEx.class);
			break;
			
		case R.id.ch12subtitle9:
			intent = new Intent(this, CustomAdapterEx.class);
			break;
			
		case R.id.ch12subtitle10:
			intent = new Intent(this, CustomAdapterEx2.class);
			break;
			
		case R.id.ch12subtitle11:
			intent = new Intent(this, CustomAdapterEx3.class);
			break;
			
		case R.id.ch12subtitle12:
			intent = new Intent(this, CustomAdapterEx4.class);
			break;
			
		case R.id.ch12subtitle13:
			intent = new Intent(this, SpinnerEx1.class);
			break;
			
		case R.id.ch12subtitle14:
			intent = new Intent(this, SpinnerEx2.class);
			break;
			
		case R.id.ch12subtitle15:
			intent = new Intent(this, GridViewEx1.class);
			break;
			
		case R.id.ch12subtitle16:
			intent = new Intent(this, GalleryEx.class);
			break;
			
		case R.id.ch12subtitle17:
			intent = new Intent(this, ScrollViewEx.class);
			break;
			
		case R.id.ch12subtitle18:
			intent = new Intent(this, SpinnerTest.class);
			break;
			
		case R.id.ch12subtitle19:
			intent = new Intent(this, SpinnerListViewTest.class);
			break;
		}
		startActivity(intent);
	}
}
